package com.atguigu.jxc.service;

import com.atguigu.jxc.entity.*;

import java.util.List;
import java.util.Map;

public interface SellService {
    List<Customer> getCustomerList(String q);

    void saveSaleListGoods(SaleList saleList, List<SaleListGoods> saleListGoods);

    void saveCustomerReturnListGoods(CustomerReturnList customerReturnList, List<CustomerReturnListGoods> list);

    Map<String, Object> getSaleListGoodsList(String saleNumber, Integer customerId, Integer state, String sTime, String eTime);

    Map<String, Object> saleGoodsList(Integer saleListId);

    void delSaleListAndGodos(Integer saleListId);

    Map<String, Object> getCustomerReturnListGoodsList(String returnNumber, Integer customerId, Integer state, String sTime, String eTime);

    Map<String, Object> customerReturnListGoodsList(Integer customerReturnListId);

    void delCustomerReturnListAndGoods(Integer customerReturnListId);

    void updateState(Integer saleListId);

    List<Map> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);

    List<AVGPojo> getSaleDataByDay(String sTime, String eTime);

    List<AVGPojo> getSaleDataByMonth(String sTime, String eTime);
}
